//
//  Config.h
//  gamebox_qpp
//
//  Created by 赵隆杰 on 2021/12/10.
//

#ifndef Config_h
#define Config_h

#define kColor(a) [UIColor colorWithHexString:a]
#define kBgColor [UIColor colorWithHexString:@"F3F3F2"]
#define kViewBgColor [UIColor colorWithHexString:@"F2F2F2"]//默认页面背景色
#define kViewF6Color [UIColor colorWithHexString:@"F6F6F6"]//页面背景色
#define kLineColor [UIColor colorWithHexString:@"EEEEEE"]//分割线颜色
#define kFontColor2 [UIColor colorWithHexString:@"999999"]//cell右title字色
#define kColor888888 [UIColor colorWithHexString:@"888888"]//cell左title字色
#define kColor666666 [UIColor colorWithHexString:@"666666"]//cell左title字色
#define kColor333333 [UIColor colorWithHexString:@"333333"]//cell右title字色
#define kRGBAColor(r,g,b,a) [UIColor colorWithRed:r/256.0 green:g/256.0 blue:b/256.0 alpha:a]
#define kRGBColor(r,g,b) kRGBAColor(r,g,b,1.0)
#define kRandomColor kRGBColor(arc4random_uniform(256), arc4random_uniform(256), arc4random_uniform(256))//随机色生成
#define kThemeColor [UIColor colorWithRed:255/256.0 green:196/256.0 blue:0/256.0 alpha:1.0]//app主题色
#define kThemeTitleColor [UIColor colorWithRed:254/256.0 green:102/256.0 blue:0/256.0 alpha:1.0]//app主题色

//获取屏幕宽高
#define kScreen_Bounds ([UIScreen mainScreen].bounds)
#define SL_WINDOW_WIDTH (kScreen_Bounds.size.width)
#define SL_WINDOW_HEIGHT (kScreen_Bounds.size.height)


////状态栏高度
//#define SL_VC_StatusBar_HEIGHT [[UIApplication sharedApplication] statusBarFrame].size.height
////工具栏高度
//#define SL_VC_TabBar_HEIGHT (SL_VC_StatusBar_HEIGHT > 20 ? 83 : 49)
////导航栏高度
//#define SL_VC_HEADER_HEIGHT (SL_VC_StatusBar_HEIGHT + 44.0)
//#define SL_VC_AreaBottom [UIApplication sharedApplication].keyWindow.safeAreaInsets.bottom
//
//#define kAppWindow [UIApplication sharedApplication].delegate.window

#define VHWeakSelf __weak typeof(self) weakSelf = self;
#define VHStrongSelf __strong typeof(self) self = weakSelf;

#define ApiURL @"http://server-api.7pa.com/ios"
#define H5URL @"https://qpyx-webgame.xxchangyou.com/#"
#define H5TestURL @"http://192.168.1.133:8085/#"
#define H5AppendUrl_Test(urlStr) [NSString stringWithFormat:@"%@/%@/1",H5TestURL,urlStr]
#define H5AppendUrl(urlStr) [NSString stringWithFormat:@"%@/%@/1",H5URL,urlStr]

#define QPJH_BaseUrl @"http://server-api.7pa.com/ios"
#define AppendUrl(urlStr) [NSString stringWithFormat:@"%@%@",QPJH_BaseUrl,urlStr]
#define SuccessCode @"200"

#define placeholder_image [UIImage imageNamed:@"placeholder_image"]


#endif /* Config_h */
